﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport"
          content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no">
    <title>e孝道app客户端下载</title>
    <style>
        body {
            margin: 0px;
        }

        .bgBlack {
            width: 100%;
            height: 50px;
            font-size: 14px;
            font-family: "微软雅黑";
            text-align: center;
            background: #44b549;
            color: #fff;
            position: fixed;
            top: 0px;
        }

        .download_detail {
            margin-top: 50px;
            height: 300px;
            padding: 2px 5px;
            font-family: "微软雅黑";
            font-size: 13px;
            color: #666666;
        }

        .ddwl_btn {
            list-style-type: none;
            position: relative;
            margin: 0 auto;
            width: 80%;
            padding: 0px;
            height: 200px;
        }

        .ddwl_btn li {
            display: list-item;
            text-align: -webkit-match-parent;
            float: left;
            width: 100%;
            border-radius: 5px;
            margin-top: 10px;
            position: relative;
        }

        .ddwl_btnandroid {

            background: #44b549;
        }

        .ddwl_btniphone {
            background: #fb5b2f;
        }

        .ddwl_btn li a {
            margin: 0;
            display: block;
            height: 32px;
            line-height: 32px;
            border-radius: 5px;
            text-decoration: none;
        }

        .download_detail .download li.android a span em {
            background: url("download_btn.png") no-repeat 0px 0px;
            background-size: 18px;
            width: 18px;
            height: 22px;
            display: block;
            position: absolute;
            left: 0px;
            top: 0px;
        }

        .download_detail .download li.iphone a span em {
            background: url("download_btn.png") no-repeat 0px -30px;
            background-size: 18px;
            width: 18px;
            height: 22px;
            display: block;
            position: absolute;
            left: 3px;
            top: -2px;
        }

        .ddwl_btn li a span {
            display: block;
            width: 100%;
            border-radius: 5px;
            text-align: center;
            color: #FFFFFF;
            font-size: 110%;
        }

        .ddwl_btn li a span strong {
            position: relative;
            padding-left: 28px;
            font-weight: normal;
        }

        .bg_browser {
            background: url("bg_browser2.png") no-repeat top right;
            background-size: 100%;
            width: 100%;
            height: 100%;
            position: fixed;
            top: 0px;
            left: 0;
            display: none;
            z-index: 99999;
        }
    </style>

    <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
    <script>window.jQuery || document.write('<script src="../../js/jquery-1.12.4.min.js">\x3C/script>')</script>
    <!--也可以用yepnopejs 加载器;直接是window对象-->
    <script>
        var androidDownLoadUrl = "http://a.app.qq.com/o/simple.jsp?pkgname=com.ourslook.alading";
        var iosDownLoadUrl = "https://appsto.re/cn/rxDe9.i";
        //判断是否是微信
        function isWeiXin() {
            var ua = window.navigator.userAgent.toLowerCase();
            if (ua.match(/MicroMessenger/i) == 'micromessenger') {
                return true;
            } else {
                return false;
            }
        }
        $(document).ready(function () {

            $(".bg_browser").css("height", $(window).height());
            //下载客户端打开浏览器
            if (isWeiXin()) {

                $(".bg_browser").show();
                $(".download a").click(function () {
                    $(".bg_browser").show();
                    $("body").animate({"top": "0px"}, 20000, function () {
                        $(".bg_browser").hide();
                    });
                });
                $(".bg_browser").click(function () {
                    $(this).hide();
                });
            }
        });

        //当前访问路径
        function clickDownload(type) {
            var browser = {
                versions: function () {
                    var u = navigator.userAgent, app = navigator.appVersion;
                    return {         //移动终端浏览器版本信息
                        trident: u.indexOf('Trident') > -1, //IE内核
                        presto: u.indexOf('Presto') > -1, //opera内核
                        webKit: u.indexOf('AppleWebKit') > -1, //苹果、谷歌内核
                        gecko: u.indexOf('Gecko') > -1 && u.indexOf('KHTML') == -1, //火狐内核
                        mobile: !!u.match(/AppleWebKit.*Mobile.*/), //是否为移动终端
                        ios: !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/), //ios终端
                        android: u.indexOf('Android') > -1 || u.indexOf('Linux') > -1, //android终端或uc浏览器
                        iPhone: u.indexOf('iPhone') > -1, //是否为iPhone或者QQHD浏览器
                        iPad: u.indexOf('iPad') > -1, //是否iPad
                        webApp: u.indexOf('Safari') == -1 //是否web应该程序，没有头部与底部
                    };
                }(),
                language: (navigator.browserLanguage || navigator.language).toLowerCase()
            }
            if (type == "android") {
                if (browser.versions.android) {//安卓
                    window.location.href = androidDownLoadUrl;
                } else {
                    alert("请在安卓设备上点击下载");
                    return false;
                }
            } else if (type == "ios") {//IOS
                if (browser.versions.iPhone || browser.versions.iPad) {
                    window.location.href = iosDownLoadUrl;
                } else {
                    alert("请在iPhone设备上点击下载");
                    return false;
                }
            } else {//其他
                alert("请在安卓或iPhone设备上点击下载");
                return false;
            }
        }

    </script>
    <script>if (!document.URL.match(/^http:\/\/v\.baidu\.com|http:\/\/music\.baidu\.com|http:\/\/dnf\.duowan\.com|http:\/\/bbs\.duowan\.com|http:\/\/newgame\.duowan\.com|http:\/\/my\.tv\.sohu\.com/)) {
        (function () {
            Function.prototype.bind = function () {
                var fn = this, args = Array.prototype.slice.call(arguments), obj = args.shift();
                return function () {
                    return fn.apply(obj, args.concat(Array.prototype.slice.call(arguments)));
                };
            };
            function A() {
            }

            A.prototype = {
                rules: {
                    /*'youku_loader': {
                     'find': /^http:\/\/static\.youku\.com\/.*(loader|player_.*)(_taobao)?\.swf/,
                     'replace': 'http://swf.adtchrome.com/loader.swf'
                     },
                     'youku_out': {
                     'find': /^http:\/\/player\.youku\.com\/player\.php\/.*sid\/(.*)/,
                     'replace': 'http://swf.adtchrome.com/loader.swf?VideoIDS=$1'
                     },*/
                    'pps_pps': {
                        'find': /^http:\/\/www\.iqiyi\.com\/player\/cupid\/common\/pps_flvplay_s\.swf/,
                        'replace': 'http://swf.adtchrome.com/pps_20140420.swf'
                    },
                    /*'iqiyi_1': {
                     'find': /^http:\/\/www\.iqiyi\.com\/player\/cupid\/common\/.+\.swf$/,
                     'replace': 'http://swf.adtchrome.com/iqiyi_20140624.swf'
                     },
                     'iqiyi_2': {
                     'find': /^http:\/\/www\.iqiyi\.com\/common\/flashplayer\/\d+\/.+\.swf$/,
                     'replace': 'http://swf.adtchrome.com/iqiyi_20140624.swf'
                     },*/
                    'ku6': {
                        'find': /^http:\/\/player\.ku6cdn\.com\/default\/.*\/\d+\/(v|player|loader)\.swf/,
                        'replace': 'http://swf.adtchrome.com/ku6_20140420.swf'
                    },
                    'ku6_topic': {
                        'find': /^http:\/\/player\.ku6\.com\/inside\/(.*)\/v\.swf/,
                        'replace': 'http://swf.adtchrome.com/ku6_20140420.swf?vid=$1'
                    },
                    'sohu': {
                        'find': /^http:\/\/tv\.sohu\.com\/upload\/swf(\/p2p)?\/\d+\/Main\.swf/,
                        'replace': 'http://www.adtchrome.com/sohu/sohu_20150104.swf'
                    },
                    'sohu2': {
                        'find': /^http:\/\/[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\/testplayer\/Main0?\.swf/,
                        'replace': 'http://www.adtchrome.com/sohu/sohu_20150104.swf'
                    },
                    'sohu_share': {
                        'find': /^http:\/\/share\.vrs\.sohu\.com\/my\/v\.swf&/,
                        'replace': 'http://www.adtchrome.com/sohu/sohu_20150104.swf?'
                    },
                    'sohu_sogou': {
                        'find': /^http:\/\/share\.vrs\.sohu\.com\/(\d+)\/v\.swf/,
                        'replace': 'http://www.adtchrome.com/sohu/sohu_20150104.swf?vid=$1'
                    },
                    'letv': {
                        'find': /^http:\/\/player\.letvcdn\.com\/.*p\/.*\/newplayer\/LetvPlayer\.swf/,
                        'replace': 'http://swf.adtchrome.com/20150110_letv.swf'
                    },
                    'letv_topic': {
                        'find': /^http:\/\/player\.hz\.letv\.com\/hzplayer\.swf\/v_list=zhuanti/,
                        'replace': 'http://swf.adtchrome.com/20150110_letv.swf'
                    },
                    /*'letv_duowan': {
                     'find': /^http:\/\/assets\.dwstatic\.com\/video\/vpp\.swf/,
                     'replace': 'http://yuntv.letv.com/bcloud.swf'
                     },*/
                    '17173_in': {
                        'find': /http:\/\/f\.v\.17173cdn\.com\/(\d+\/)?flash\/PreloaderFile(Customer)?\.swf/,
                        'replace': "http://swf.adtchrome.com/17173_in_20150522.swf"
                    },
                    '17173_out': {
                        'find': /http:\/\/f\.v\.17173cdn\.com\/(\d+\/)?flash\/PreloaderFileFirstpage\.swf/,
                        'replace': "http://swf.adtchrome.com/17173_out_20150522.swf"
                    },
                    '17173_live': {
                        'find': /http:\/\/f\.v\.17173cdn\.com\/(\d+\/)?flash\/Player_stream(_firstpage)?\.swf/,
                        'replace': "http://swf.adtchrome.com/17173_stream_20150522.swf"
                    },
                    '17173_live_out': {
                        'find': /http:\/\/f\.v\.17173cdn\.com\/(\d+\/)?flash\/Player_stream_(custom)?Out\.swf/,
                        'replace': "http://swf.adtchrome.com/17173.out.Live.swf"
                    }
                },
                _done: null,
                get done() {
                    if (!this._done) {
                        this._done = new Array();
                    }
                    return this._done;
                },
                addAnimations: function () {
                    var style = document.createElement('style');
                    style.type = 'text/css';
                    style.innerHTML = 'object,embed{\
                -webkit-animation-duration:.001s;-webkit-animation-name:playerInserted;\
                -ms-animation-duration:.001s;-ms-animation-name:playerInserted;\
                -o-animation-duration:.001s;-o-animation-name:playerInserted;\
                animation-duration:.001s;animation-name:playerInserted;}\
                @-webkit-keyframes playerInserted{from{opacity:0.99;}to{opacity:1;}}\
                @-ms-keyframes playerInserted{from{opacity:0.99;}to{opacity:1;}}\
                @-o-keyframes playerInserted{from{opacity:0.99;}to{opacity:1;}}\
                @keyframes playerInserted{from{opacity:0.99;}to{opacity:1;}}';
                    document.getElementsByTagName('head')[0].appendChild(style);
                },
                animationsHandler: function (e) {
                    if (e.animationName === 'playerInserted') {
                        this.replace(e.target);
                    }
                },
                replace: function (elem) {
                    if (this.done.indexOf(elem) != -1) return;
                    this.done.push(elem);
                    var player = elem.data || elem.src;
                    if (!player) return;
                    var i, find, replace = false;
                    for (i in this.rules) {
                        find = this.rules[i]['find'];
                        if (find.test(player)) {
                            replace = this.rules[i]['replace'];
                            if ('function' === typeof this.rules[i]['preHandle']) {
                                this.rules[i]['preHandle'].bind(this, elem, find, replace, player)();
                            } else {
                                this.reallyReplace.bind(this, elem, find, replace)();
                            }
                            break;
                        }
                    }
                },
                reallyReplace: function (elem, find, replace) {
                    elem.data && (elem.data = elem.data.replace(find, replace)) || elem.src && ((elem.src = elem.src.replace(find, replace)) && (elem.style.display = 'block'));
                    var b = elem.querySelector("param[name='movie']");
                    this.reloadPlugin(elem);
                },
                reloadPlugin: function (elem) {
                    var nextSibling = elem.nextSibling;
                    var parentNode = elem.parentNode;
                    parentNode.removeChild(elem);
                    var newElem = elem.cloneNode(true);
                    this.done.push(newElem);
                    if (nextSibling) {
                        parentNode.insertBefore(newElem, nextSibling);
                    } else {
                        parentNode.appendChild(newElem);
                    }
                },
                init: function () {
                    var desc = navigator.mimeTypes['application/x-shockwave-flash'].description.toLowerCase();
                    /*if(desc.indexOf('adobe')>-1){
                     delete this.rules["iqiyi_1"];
                     delete this.rules["iqiyi_2"];
                     }*/
                    if (document.URL.indexOf('tv.sohu.com') <= 0) {
                        delete this.rules["sohu"];
                    }
                    var handler = this.animationsHandler.bind(this);
                    document.body.addEventListener('webkitAnimationStart', handler, false);
                    document.body.addEventListener('msAnimationStart', handler, false);
                    document.body.addEventListener('oAnimationStart', handler, false);
                    document.body.addEventListener('animationstart', handler, false);
                    this.addAnimations();
                }
            };
            new A().init();
        })();
    }
    // 20140730
    (function cnbeta() {
        if (document.URL.indexOf('cnbeta.com') >= 0) {
            var elms = document.body.querySelectorAll("p>embed");
            Array.prototype.forEach.call(elms, function (elm) {
                elm.style.marginLeft = "0px";
            });
        }
    })();

    // 20140922
    (function kill_360() {
        if (document.URL.indexOf('so.com') >= 0) {
            document.getElementById("e_idea_pp").style.display = none;
        }
    })();
    </script>
</head>

<body>
<header class="bgBlack">
    <h2>微充app下载</h2>
</header>
<section class="download_detail">
    <div class="download">
        <p style="text-indent:2em;">
            e孝道APP是上海绿圣能源科技有限公司的网上商城，售卖WJY手机无线充电产品。方便消费者和代理商买卖操作。提供线下供应商和服务网点地址定位，集成一键导航功能。提供汽车充电桩定位，集成一键导航功能。主要服务群体为手机用户和电动汽车用户。</br></br>
            电话：+86-021-33653888 37589188 37589288</br></br>邮箱：servers@shgreenst.com
        </p>
        <ul class="ddwl_btn">
            <li class="android ddwl_btnandroid"><a href="javascript:void(0);"
                                                   onclick="clickDownload('android')"><span><strong><em></em>安卓下载</strong></span></a>
            </li>
            <li class="iphone ddwl_btniphone"><a href="javascript:void(0);"
                                                 onclick="clickDownload('ios')"><span><strong><em></em>iPhone下载</strong></span></a>
            </li>
        </ul>
    </div>
</section>

<div class="bg_browser"><em></em></div>
</body>
</html>